
if ( SERVER ) then
	AddCSLuaFile( "shared.lua" )
	SWEP.HoldType		= "ar2"
end

if ( CLIENT ) then
	SWEP.PrintName			= "Ar1"			
	SWEP.Author				= "Zelaroth"
        SWEP.Instructions   = "Left Click: Primary fire, Right Click: IronSight."
	SWEP.Slot				= 3
	SWEP.SlotPos			= 3
	SWEP.IconLetter			= "Z"
	SWEP.ViewModelFOV      = 70
	killicon.AddFont( "weapon_ak47", "CSKillIcons", SWEP.IconLetter, Color( 255, 80, 0, 255 ) )
end

SWEP.Base = "weapon_cs_base"
SWEP.Spawnable = true
SWEP.AdminSpawnable = true
SWEP.ViewModel = "models/weapons/v_ar1.mdl"
SWEP.WorldModel = "models/weapons/w_shotgun.mdl"
SWEP.Weight = 5
SWEP.AutoSwitchTo = false
SWEP.AutoSwitchFrom = false
SWEP.Primary.Sound = Sound( "weapons/ar1/ar1_fire.wav" )
SWEP.Primary.Recoil = 0
SWEP.Primary.Damage = 60
SWEP.Primary.NumShots = 1
SWEP.Primary.Cone = 0.03
SWEP.Primary.ClipSize = 15
SWEP.Primary.Delay = 1
SWEP.Primary.DefaultClip = 45
SWEP.Primary.Automatic = true
SWEP.Primary.Ammo = "smg1"
SWEP.Secondary.ClipSize = -1
SWEP.Secondary.DefaultClip = -1
SWEP.Secondary.Automatic = false
SWEP.Secondary.Ammo = "none"
SWEP.IronSightsPos = Vector( -4.5, -11, 2.55 )
SWEP.IronSightsAng = Vector( 0, 0, 0 )